const fs = require('fs');

fs.stat(`www/1.html`, (err, stat) => {
	if (err) {
		console.log('获取文件信息失败');
	} else {
		console.log(stat.mtime.toGMTString());
	}
})

/**
Stats {
  dev: 1354579079,
  mode: 33206,
  nlink: 1,
  uid: 0,
  gid: 0,
  rdev: 0,
  blksize: undefined,
  ino: 28147497671105668,
  size: 282,
  blocks: undefined,
  atimeMs: 1517228763135,
  mtimeMs: 1517228975481,
  ctimeMs: 1517228975482.1638,
  birthtimeMs: 1517228752364.605,
  atime: 2018-01-29T12:26:03.135Z,
  mtime: 2018-01-29T12:29:35.481Z,
  ctime: 2018-01-29T12:29:35.482Z,
  birthtime: 2018-01-29T12:25:52.365Z
}
 */